package com.example.wechatdaka.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.wechatdaka.entity.UserStudent;
import com.example.wechatdaka.mapper.UserStudentMapper;
import com.example.wechatdaka.service.UserStudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lx
 * @since 2020-11-26
 */
@Service
public class UserStudentServiceImpl extends ServiceImpl<UserStudentMapper, UserStudent> implements UserStudentService {
    @Autowired
    private UserStudentMapper userStudentMapper;
    @Override
    public List<UserStudent> selectStudentList() {
        return userStudentMapper.selectStudentList();
    }

    @Override
    public List<UserStudent> queryAllStudent() {
        return userStudentMapper.queryAllStudent();
    }
    public IPage<UserStudent> queryAllStudentByPage(Page page){
        return userStudentMapper.queryAllStudentByPage(page);
    }

    @Override
    public IPage<UserStudent> queryClazzStudentByPage(Page page, String id) {
        return userStudentMapper.queryClazzStudentByPage(page,id);
    }

    @Override
    public UserStudent queryByUserNumber(String lxUserNumber) {
        return userStudentMapper.queryByUserNumber(lxUserNumber);
    }
}
